package com.atguigu.daijia.dispatch.xxl.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author ：dml
 * 接收配置文件中的几个属性,分别是几个方法的地址
 * client:
 *       jobGroupId: 1
 *       addUrl: ${xxl.job.admin.addresses}/jobinfo/addJob
 *       removeUrl: ${xxl.job.admin.addresses}/jobinfo/removeJob
 *       startJobUrl: ${xxl.job.admin.addresses}/jobinfo/startJob
 *       stopJobUrl: ${xxl.job.admin.addresses}/jobinfo/stopJob
 *       addAndStartUrl: ${xxl.job.admin.addresses}/jobinfo/addAndStartJob
 *
 *       这些方法是用来操作任务的
 *
 *
 *
 *       有执行器后-发布任务选中执行器-执行---------------------------------------------------------
 */
@Data
@Component
@ConfigurationProperties(prefix = "xxl.job.client")
public class XxlJobClientConfig {

    private Integer jobGroupId;
    private String addUrl;
    private String removeUrl;
    private String startJobUrl;
    private String stopJobUrl;
    private String addAndStartUrl;
}
